

#ifndef TABWIDGET_H
#define TABWIDGET_H

#include <qtabwidget.h>
#include <qptrlist.h>
class MyTabBar;
class SopFork;

class TabWidget:public QTabWidget
{
    Q_OBJECT			///
  public:
    TabWidget (QWidget * parent = 0, const char *name = 0);
     ~TabWidget ();
      QPtrList < SopFork > listsopfork;
    bool attachSop (SopFork **, QWidget *, QString url, QString name, QString type = "wmv");
    void detachSop (SopFork **, QWidget *);

  private:
      MyTabBar * tabbar;

  protected:
    void mouseDoubleClickEvent (QMouseEvent *);

    private slots:		///
    void addPlayTab ();
    void insertPlayTab ();
    void addRecordTab ();
    void insertRecordTab ();
    void onCurrentChanged (QWidget *);

};

#endif
